package com.honglv.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GetAllHotelVO {

    // 酒店id
    private Long id;

    // 酒店名称
    private String name;

    // 图片
    private List<String> pictures;

    // 电话
    private Long phone;

    public void setPictures(String pictures) {
        this.pictures = new ArrayList<>(Arrays.asList(pictures.split(",")));
    }
}
